home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 426 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.std.c
  2. Path: phcoms4.seri.philips.nl!panther!baynes
  3. From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
  4. Subject: Re: CLOCKS_PER_SEC not defined
  5. Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
  6. Message-ID: <DMv2A4.Br6@ukpsshp1.serigate.philips.nl>
  7. Date: Fri, 16 Feb 1996 08:58:52 GMT
  8. References: <ramin.1174728902A@news.gsfc.nasa.gov>
  9. Organization: Philips Semiconductors, Southampton, UK
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Ramin Sina (ramin@twinkie.gsfc.nasa.gov) wrote:
  13. : Hello everyone,
  14.  
  15. : I am using a supposedly ansi c program in which I write
  16.  
  17. : #include <time.h>
  18.  
  19. : #if defined(__STDC__) && !defined(CLOCKS_PER_SEC)
  20. : #error "CLOCKS_PER_SEC is not defined on this stupid compiler"
  21. : #endif
  22.  
  23. : I get the error that CLOCKS_PER_SEC is not defined. I had thought that it
  24. : was defined in standard C in the time.h header. I need CLOCKS_PER_SEC to
  25. : time how long it takes for the program to run. Can anybody suggest how I can
  26. : fix this problem.
  27.  
  28. It should be - you will have to take it up with your compiler vendor.
  29.  
  30. --
  31. Stephen Baynes                              baynes@mulsoc2.serigate.philips.nl
  32. Philips Semiconductors Ltd
  33. Southampton                                 My views are my own.
  34. United Kingdom
  35.